//	CP2013 Traffic Simulator Assignment
//      Traffic Model Coordinate
//	Java version
//      Coded by Matthew Johnson


package traffic;

//Coordinate stores a coordinate on the grid
public class Coordinate
{
    public int x;
    public int y;

    //Constructor:
    Coordinate(int a, int b)
    {
        x = a;
        y = b;
    }
    //Copy Constructor
    Coordinate(Coordinate c)
    {
        x = c.x;
        y = c.y;
    }

    //Comparison function
    public boolean equals(Coordinate coord)
    {
        return(x == coord.x && y == coord.y);
    }
}
